package com.enjoy.jvm.hotspot.src.share.tools;

public class Stream {

    public static void readU2Simple(byte[] content, int from, byte[] ret) {
        System.arraycopy(content, from, ret, 0, 2);
    }

    public static void readSimple(byte[] content, int from, int size, byte[] ret) {
        System.arraycopy(content, from, ret, 0, size);
    }

    public static byte readU1Simple(byte[] content,int from){
        byte[] arr = new byte[1];
        System.arraycopy(content, from, arr, 0, 1);
        return arr[0];
    }

    public static void readU4Simple(byte[] content,int from,byte[] ret){
        System.arraycopy(content, from, ret, 0, 4);
    }

    public static void readU8Simple(byte[] content,int from,byte[] ret){
        System.arraycopy(content, from, ret, 0, 8);
    }
}
